/*
 * @Copyright: 2016 www.yyfax.com Inc. All rights reserved.
 */
package com.yyfax.pay.order.data.dao;

import java.util.List;

import com.yyfax.framework.dao.BaseDao;
import com.yyfax.pay.order.model.po.PayinOrderPO;

/**
 * 代扣订单持久化接口
 *
 * @author maojian
 * @date 2017-04-26 11:09:15
 * @since 1.0.0
 */
public interface PayinOrderDao extends BaseDao<PayinOrderPO, Integer> {

	/**
	 * 根据主键获取实体
	 * 
	 * @user maojian
	 * @date 2017-05-4 11:09:15
	 * @since 1.0.0
	 * @param id 自增主键
	 * @param merchantCode 商户编号(为分表预留参数)
	 * @return
	 */
	public PayinOrderPO selectByOrderIdAndMerchantCode(String orderId, String merchantCode) throws Exception;
	
	
	
	/**
	 * 查询代付订单列表
	 * 
	 * @author maojian
	 * @date 2017-05-4 11:28:13
	 * @since v1.0.0
	 * @param merchantCode
	 * @param payoutBatchOrderId
	 * @return
	 */
	public List<PayinOrderPO> selectByMerchantCodeAndPayinBatchOrderId(String merchantCode, String payoutBatchOrderId);
}
